<?php

declare(strict_types=1);

/**
 * @Author:     Frank
 * @contact     frank_hhm@163.com
 * @Date:       2023-02-16 14:28:30
 * @Last Modified time: 2023-02-16 14:34:05
 */
namespace app\common\enum\pay;
use frank\base\BaseEnum;

/**
 * 支付方式枚举类
 * Class PayTypeEnum
 * @package app\common\enum\pay
 */
class PayTypeEnum extends BaseEnum
{
    // 余额支付
    const WALLET = 'walletpay';

    // 微信支付
    const WECHAT = 'wechatpay';

    // 线下支付
    const OFFLINE = 'offline';

    /**
     * 获取枚举数据
     * @return array
     */
    public static function data()
    {
        return [
            self::WALLET => [
                'name' => '余额支付',
                'value' => self::WALLET,
            ],
            self::WECHAT => [
                'name' => '微信支付',
                'value' => self::WECHAT,
            ],
            self::OFFLINE => [
                'name' => '线下支付',
                'value' => self::OFFLINE,
            ],
        ];
    }
}